﻿@if(Request.IsAuthenticated) {
   @Html.ActionLink(@User.Identity.Name, @User.Identity.Name, @User.Identity.Name)
   <text> | @Html.ActionLink("Log Off", "LogOff", "Account")</text>
}
else
{
    @: @Html.ActionLink("Log On", "LogOn", "Account")
}
